<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link href='/meirongtest/Public/Member/css/global.css' rel='stylesheet' type='text/css' />
<link href='/meirongtest/Public/Member/css/main.css' rel='stylesheet' type='text/css' />
<link href='/meirongtest/Public/Member/css/mall.css' rel='stylesheet' type='text/css' />

<script type='text/javascript' src='/meirongtest/Public/Member/js/jquery-1.7.2.min.js'></script>
<script type='text/javascript' src='/meirongtest/Public/Member/js/global.js'></script>
<link href='/meirongtest/Public/Member/css/wechat.css' rel='stylesheet' type='text/css' />
<!--[if lte IE 9]><script src="__PUBIC__/Member/js/jquery.watermark-1.3.js"></script><![endif]-->
<script type='text/javascript' src='/meirongtest/Public/Member/js/wechat.js'></script>
<script type="text/javascript" src="/meirongtest/Public/Member/js/operamasks-ui.min.js"></script>
<script type="text/javascript" src="/meirongtest/Public/Member/js/exchange.js"></script>

<link href='/meirongtest/Public/Member/css/daterangepicker.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/meirongtest/Public/Member/js/moment.min.js'></script>
<script type='text/javascript' src='/meirongtest/Public/Member/js/daterangepicker.js'></script>
<script type='text/javascript'>
var web_domain='/meirongtest';
var static_domain='/meirongtest';
var img_domain='/meirongtest';
var _PUBLIC_ = '/meirongtest/Public';
var _FILE_ = '<?php echo U('Index/ajaxFileUpload');?>';
var domain={
        www:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        static:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        img:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        file:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        kf:'<?php echo C('WEB_ABSOLUTE_URL');?>'
};
</script>

<script language="javascript">
      $(document).ready(exchange_obj.exchange_init); 
</script>

</head>

<body>
	
	
	<div id="iframe_page">
		<div class="iframe_content">
			<div class="r_nav">
				<ul>
					<!-- <li class="<?php if((ACTION_NAME) == "index"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/index');?>">首次关注设置</a></li>
					<li class="<?php if((ACTION_NAME) == "keyword"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/keyword');?>">关键词回复</a></li>
					 -->
					<!-- <li class="<?php if((ACTION_NAME) == "vip"): ?>cur<?php endif; ?>"><a href="<?php echo U('Vip/vip');?>">会员管理</a></li>
					<li class="<?php if((ACTION_NAME) == "collect"): ?>cur<?php endif; ?>"><a href="<?php echo U('Collect/collect');?>">收藏管理</a></li>
					<li class="<?php if((ACTION_NAME) == "integral"): ?>cur<?php endif; ?>"><a href="<?php echo U('Integral/integral');?>">积分管理</a></li> -->
					<li class="<?php if((ACTION_NAME) == "vip"): ?>cur<?php endif; ?>"><a href="<?php echo U('Vip/vip');?>">会员管理</a></li>
					<li class="<?php if((ACTION_NAME) == "exchange"): ?>cur<?php endif; ?>"><a href="<?php echo U('Exchange/exchange');?>">积分兑换</a></li>
											
				</ul>
			</div>

		
		

			
	<div id="scratch" class="r_con_wrap">
	<div class="control_btn">
		<a href="<?php echo U('exchangeAdd');?>" class="btn_green btn_w_120">积分兑换添加</a>
	</div>
<!-- 	<form class="r_con_search_form" id="search_form" method="post" action="<?php echo U('Point/pointSearch');?>"> 
			关键字：<input name="Keyword" value="" type="text" class="form_input" size="15" >
			<input type="submit" class="search_btn" id="search_btn" value="搜索">
			<input type="button" class="search_btn" id="excel_btn" value="导出">
			<input type="hidden" id="do_action" value="<?php echo U('Order/orderSearch');?>">
	</form> -->
		
	<table class="r_con_table" border="0" cellpadding="5" cellspacing="0">
		<thead>
			<tr>
				<td width="5%">序号</td>
				<td width="10%">兑换物品</td>
				<td width="10%">图片</td>
				<td width="10%">所需积分</td>
				<td class="last" width="5%">操作</td> 
			</tr>
		</thead>
		<tbody> 
		<?php if(is_array($exchangeList)): $i = 0; $__LIST__ = $exchangeList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
				<td align="center"><?php echo ($key+1); ?></td>
	            <td align="center"><?php echo ($vo["name"]); ?></td>
	            <td align="center"><img src="<?php echo ($vo["imgpath"]); ?>" width="50px" height="50px" /></td>
	            <td align="center"><?php echo ($vo["need_integral"]); ?></td>
	            <td Mid="<?php echo ($vo["id"]); ?>">
	            <a href="<?php echo U('Exchange/exchangeAdd',array('id'=>$vo['id']));?>"><img src="/meirongtest/Public/member/images/ico/mod.gif"></a>
	            <a href="#del" url="<?php echo U('Exchange/exchangeDel');?>"><img src="/meirongtest/Public/member/images/ico/del.gif"></a></td> 
	        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
	</tbody>
	</table>

</div>
	<div id="turn_page">
		<?php echo ($page); ?>
	</div>

			
			</div>
			</div>
</body>
</html>